﻿@model IEnumerable<MIZ.Models.Meetinstrument>

@{
    ViewBag.Title = "Index";
}

@section featured {
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1>Overzicht Meetinstrumenten</h1>
                <h2>Lijst van Meetinstrumenten</h2>                
            </hgroup>
            <p>
            </p>
        </div>
    </section>
}
<p>
<p>
    <input type="submit" value="Voeg een nieuw meetinstrument toe." style="width:auto" class="New_Button" onclick="location.href='@Url.Action("Create")'" />
</p>
<table>
    <tr>
       <th style="padding:5px;">Meet instrument</th>
       <th style="padding:5px;">Afkorting</th>
       <th style="padding:5px;">Soort instrument</th>
       <th style="padding:5px;">Auteurs</th>
       <th style="padding:5px;">Documenten</th>
       <th style="padding:5px;"></th>
    </tr>

@foreach (var item in Model) {
    <tr border="1" style="border:1px solid black;">
        <td>@Html.DisplayFor(modelItem => item.Meet_instrument)</td>
        <td>@Html.DisplayFor(modelItem => item.Afkorting)</td>
        <td>@Html.DisplayFor(modelItem => item.Soort_instrument)</td>
        <td>@Html.DisplayFor(modelItem => item.Auteurs)</td>
        <td>@Html.DisplayFor(modelItem => item.Documenten)</td>
        <td>
            @Html.ActionLink("Verander", "Edit", new { id=item.Id }) |
            @Html.ActionLink("Details", "Details", new { id=item.Id }) |
            @Html.ActionLink("Verwijderen", "Delete", new { id=item.Id })
        </td>
    </tr>
}

</table>

<p>
    <input type="submit" value="Terug naar het beheer paneel." style="width:auto" class="New_Button" onclick="location.href='@Url.Action("AdminPanel", "Home")    '" />
</p>
